from app import create_app, db
from app.models import User, Product, Order

app = create_app()

def init_db():
    with app.app_context():
        db.create_all()
        print("数据库表创建成功！")

if __name__ == '__main__':
    init_db()
